importClass('rapi.rbase.RDiv');
function RCircleRegion(center,radius,fillcolor,strokeColor){
	this.type="Region";
	this.center=center;
	this.radius=radius;	
	this.div=new RDiv(0,0,null,null).get();
	if(this.div.addEventListener){
	    this.svg=document.createElementNS(SVG_URL, "svg");
	    this.svg.setAttribute("version","1.1");
        this.svg.setAttribute("overflow","visible");
                    
        this.oval=document.createElementNS(SVG_URL,"circle");
        if(fillcolor){
	        this.oval.setAttribute("fill",fillcolor);
	    }
	    this.oval.setAttribute("fill-opacity",0.3);
	    if(strokeColor){
	        this.oval.setAttribute("stroke",strokeColor);	        
	    }else{
	        this.oval.setAttribute("stroke","#000000");
	    }
	    this.oval.setAttribute("stroke-opacity",0.5);
	    this.oval.setAttribute("stroke-width",2);
	    
	    this.div.appendChild(this.svg);
	    this.svg.appendChild(this.oval);
	}else{
	    this.oval=document.createElement("v:oval");
	    this.style=this.oval.style;
	    this.oval.unselectable='on';
	    this.oval.fillcolor=fillcolor;
	    this.oval.style.filter='alpha(opacity=30)';
	    this.div.appendChild(this.oval);
	}
	
	this.get=function(){
		return this.div;
	}
	
	this.toString=function(){
		return 'RCircleRegion';
	}
	
	this.destroy=function(){	    
		if(this.div.parentNode){
			this.div.parentNode.removeChild(this.div);
		} 
		this.oval=null;
		this.div=null;
		this.toString=function(){return null;};
	}
}